package cn.jtcoding.item.mapper;


import cn.jtcoding.item.pojo.dataobject.ItemsSpecDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ItemsSpecMapper {
    List<ItemsSpecDO> getItemSpecList(String itemId);

    ItemsSpecDO queryItemSpecById(String itemSpecId);

    int decreaseItemSpecStock(@Param("itemSpecId") String itemSpecId, @Param("buyCounts") int buyCounts);
}